import { createRouter, createWebHistory } from 'vue-router'
import Register from '@/views/register.vue'
import Login from '@/views/login.vue'
import My from '@/views/my.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/register',
      name: 'register',
      component: Register,
    },
     {
      path: '/login',
      name: 'login',
      component: Login,
    },
     {
      path: '/my',
      name: 'my',
      component: My,
    },
   
  ],
})

export default router
